package com.zhuoshi.entity;

import java.util.ArrayList;
import java.util.List;

public class AreaExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AreaExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andBargainidIsNull() {
            addCriterion("bargainid is null");
            return (Criteria) this;
        }

        public Criteria andBargainidIsNotNull() {
            addCriterion("bargainid is not null");
            return (Criteria) this;
        }

        public Criteria andBargainidEqualTo(Integer value) {
            addCriterion("bargainid =", value, "bargainid");
            return (Criteria) this;
        }

        public Criteria andBargainidNotEqualTo(Integer value) {
            addCriterion("bargainid <>", value, "bargainid");
            return (Criteria) this;
        }

        public Criteria andBargainidGreaterThan(Integer value) {
            addCriterion("bargainid >", value, "bargainid");
            return (Criteria) this;
        }

        public Criteria andBargainidGreaterThanOrEqualTo(Integer value) {
            addCriterion("bargainid >=", value, "bargainid");
            return (Criteria) this;
        }

        public Criteria andBargainidLessThan(Integer value) {
            addCriterion("bargainid <", value, "bargainid");
            return (Criteria) this;
        }

        public Criteria andBargainidLessThanOrEqualTo(Integer value) {
            addCriterion("bargainid <=", value, "bargainid");
            return (Criteria) this;
        }

        public Criteria andBargainidIn(List<Integer> values) {
            addCriterion("bargainid in", values, "bargainid");
            return (Criteria) this;
        }

        public Criteria andBargainidNotIn(List<Integer> values) {
            addCriterion("bargainid not in", values, "bargainid");
            return (Criteria) this;
        }

        public Criteria andBargainidBetween(Integer value1, Integer value2) {
            addCriterion("bargainid between", value1, value2, "bargainid");
            return (Criteria) this;
        }

        public Criteria andBargainidNotBetween(Integer value1, Integer value2) {
            addCriterion("bargainid not between", value1, value2, "bargainid");
            return (Criteria) this;
        }

        public Criteria andRealityareaIsNull() {
            addCriterion("realityarea is null");
            return (Criteria) this;
        }

        public Criteria andRealityareaIsNotNull() {
            addCriterion("realityarea is not null");
            return (Criteria) this;
        }

        public Criteria andRealityareaEqualTo(Float value) {
            addCriterion("realityarea =", value, "realityarea");
            return (Criteria) this;
        }

        public Criteria andRealityareaNotEqualTo(Float value) {
            addCriterion("realityarea <>", value, "realityarea");
            return (Criteria) this;
        }

        public Criteria andRealityareaGreaterThan(Float value) {
            addCriterion("realityarea >", value, "realityarea");
            return (Criteria) this;
        }

        public Criteria andRealityareaGreaterThanOrEqualTo(Float value) {
            addCriterion("realityarea >=", value, "realityarea");
            return (Criteria) this;
        }

        public Criteria andRealityareaLessThan(Float value) {
            addCriterion("realityarea <", value, "realityarea");
            return (Criteria) this;
        }

        public Criteria andRealityareaLessThanOrEqualTo(Float value) {
            addCriterion("realityarea <=", value, "realityarea");
            return (Criteria) this;
        }

        public Criteria andRealityareaIn(List<Float> values) {
            addCriterion("realityarea in", values, "realityarea");
            return (Criteria) this;
        }

        public Criteria andRealityareaNotIn(List<Float> values) {
            addCriterion("realityarea not in", values, "realityarea");
            return (Criteria) this;
        }

        public Criteria andRealityareaBetween(Float value1, Float value2) {
            addCriterion("realityarea between", value1, value2, "realityarea");
            return (Criteria) this;
        }

        public Criteria andRealityareaNotBetween(Float value1, Float value2) {
            addCriterion("realityarea not between", value1, value2, "realityarea");
            return (Criteria) this;
        }

        public Criteria andVirtualareaIsNull() {
            addCriterion("virtualarea is null");
            return (Criteria) this;
        }

        public Criteria andVirtualareaIsNotNull() {
            addCriterion("virtualarea is not null");
            return (Criteria) this;
        }

        public Criteria andVirtualareaEqualTo(Float value) {
            addCriterion("virtualarea =", value, "virtualarea");
            return (Criteria) this;
        }

        public Criteria andVirtualareaNotEqualTo(Float value) {
            addCriterion("virtualarea <>", value, "virtualarea");
            return (Criteria) this;
        }

        public Criteria andVirtualareaGreaterThan(Float value) {
            addCriterion("virtualarea >", value, "virtualarea");
            return (Criteria) this;
        }

        public Criteria andVirtualareaGreaterThanOrEqualTo(Float value) {
            addCriterion("virtualarea >=", value, "virtualarea");
            return (Criteria) this;
        }

        public Criteria andVirtualareaLessThan(Float value) {
            addCriterion("virtualarea <", value, "virtualarea");
            return (Criteria) this;
        }

        public Criteria andVirtualareaLessThanOrEqualTo(Float value) {
            addCriterion("virtualarea <=", value, "virtualarea");
            return (Criteria) this;
        }

        public Criteria andVirtualareaIn(List<Float> values) {
            addCriterion("virtualarea in", values, "virtualarea");
            return (Criteria) this;
        }

        public Criteria andVirtualareaNotIn(List<Float> values) {
            addCriterion("virtualarea not in", values, "virtualarea");
            return (Criteria) this;
        }

        public Criteria andVirtualareaBetween(Float value1, Float value2) {
            addCriterion("virtualarea between", value1, value2, "virtualarea");
            return (Criteria) this;
        }

        public Criteria andVirtualareaNotBetween(Float value1, Float value2) {
            addCriterion("virtualarea not between", value1, value2, "virtualarea");
            return (Criteria) this;
        }

        public Criteria andRoomtotalIsNull() {
            addCriterion("roomtotal is null");
            return (Criteria) this;
        }

        public Criteria andRoomtotalIsNotNull() {
            addCriterion("roomtotal is not null");
            return (Criteria) this;
        }

        public Criteria andRoomtotalEqualTo(Integer value) {
            addCriterion("roomtotal =", value, "roomtotal");
            return (Criteria) this;
        }

        public Criteria andRoomtotalNotEqualTo(Integer value) {
            addCriterion("roomtotal <>", value, "roomtotal");
            return (Criteria) this;
        }

        public Criteria andRoomtotalGreaterThan(Integer value) {
            addCriterion("roomtotal >", value, "roomtotal");
            return (Criteria) this;
        }

        public Criteria andRoomtotalGreaterThanOrEqualTo(Integer value) {
            addCriterion("roomtotal >=", value, "roomtotal");
            return (Criteria) this;
        }

        public Criteria andRoomtotalLessThan(Integer value) {
            addCriterion("roomtotal <", value, "roomtotal");
            return (Criteria) this;
        }

        public Criteria andRoomtotalLessThanOrEqualTo(Integer value) {
            addCriterion("roomtotal <=", value, "roomtotal");
            return (Criteria) this;
        }

        public Criteria andRoomtotalIn(List<Integer> values) {
            addCriterion("roomtotal in", values, "roomtotal");
            return (Criteria) this;
        }

        public Criteria andRoomtotalNotIn(List<Integer> values) {
            addCriterion("roomtotal not in", values, "roomtotal");
            return (Criteria) this;
        }

        public Criteria andRoomtotalBetween(Integer value1, Integer value2) {
            addCriterion("roomtotal between", value1, value2, "roomtotal");
            return (Criteria) this;
        }

        public Criteria andRoomtotalNotBetween(Integer value1, Integer value2) {
            addCriterion("roomtotal not between", value1, value2, "roomtotal");
            return (Criteria) this;
        }

        public Criteria andRoompriceIsNull() {
            addCriterion("roomprice is null");
            return (Criteria) this;
        }

        public Criteria andRoompriceIsNotNull() {
            addCriterion("roomprice is not null");
            return (Criteria) this;
        }

        public Criteria andRoompriceEqualTo(Integer value) {
            addCriterion("roomprice =", value, "roomprice");
            return (Criteria) this;
        }

        public Criteria andRoompriceNotEqualTo(Integer value) {
            addCriterion("roomprice <>", value, "roomprice");
            return (Criteria) this;
        }

        public Criteria andRoompriceGreaterThan(Integer value) {
            addCriterion("roomprice >", value, "roomprice");
            return (Criteria) this;
        }

        public Criteria andRoompriceGreaterThanOrEqualTo(Integer value) {
            addCriterion("roomprice >=", value, "roomprice");
            return (Criteria) this;
        }

        public Criteria andRoompriceLessThan(Integer value) {
            addCriterion("roomprice <", value, "roomprice");
            return (Criteria) this;
        }

        public Criteria andRoompriceLessThanOrEqualTo(Integer value) {
            addCriterion("roomprice <=", value, "roomprice");
            return (Criteria) this;
        }

        public Criteria andRoompriceIn(List<Integer> values) {
            addCriterion("roomprice in", values, "roomprice");
            return (Criteria) this;
        }

        public Criteria andRoompriceNotIn(List<Integer> values) {
            addCriterion("roomprice not in", values, "roomprice");
            return (Criteria) this;
        }

        public Criteria andRoompriceBetween(Integer value1, Integer value2) {
            addCriterion("roomprice between", value1, value2, "roomprice");
            return (Criteria) this;
        }

        public Criteria andRoompriceNotBetween(Integer value1, Integer value2) {
            addCriterion("roomprice not between", value1, value2, "roomprice");
            return (Criteria) this;
        }

        public Criteria andHouseidIsNull() {
            addCriterion("houseid is null");
            return (Criteria) this;
        }

        public Criteria andHouseidIsNotNull() {
            addCriterion("houseid is not null");
            return (Criteria) this;
        }

        public Criteria andHouseidEqualTo(Integer value) {
            addCriterion("houseid =", value, "houseid");
            return (Criteria) this;
        }

        public Criteria andHouseidNotEqualTo(Integer value) {
            addCriterion("houseid <>", value, "houseid");
            return (Criteria) this;
        }

        public Criteria andHouseidGreaterThan(Integer value) {
            addCriterion("houseid >", value, "houseid");
            return (Criteria) this;
        }

        public Criteria andHouseidGreaterThanOrEqualTo(Integer value) {
            addCriterion("houseid >=", value, "houseid");
            return (Criteria) this;
        }

        public Criteria andHouseidLessThan(Integer value) {
            addCriterion("houseid <", value, "houseid");
            return (Criteria) this;
        }

        public Criteria andHouseidLessThanOrEqualTo(Integer value) {
            addCriterion("houseid <=", value, "houseid");
            return (Criteria) this;
        }

        public Criteria andHouseidIn(List<Integer> values) {
            addCriterion("houseid in", values, "houseid");
            return (Criteria) this;
        }

        public Criteria andHouseidNotIn(List<Integer> values) {
            addCriterion("houseid not in", values, "houseid");
            return (Criteria) this;
        }

        public Criteria andHouseidBetween(Integer value1, Integer value2) {
            addCriterion("houseid between", value1, value2, "houseid");
            return (Criteria) this;
        }

        public Criteria andHouseidNotBetween(Integer value1, Integer value2) {
            addCriterion("houseid not between", value1, value2, "houseid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}